package net.fpeg.kotlin.msa.wordbase.controller

import net.fpeg.kotlin.msa.wordbase.service.WordUserService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.PostMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("wordUser")
class WordUserController {
    @Autowired
    lateinit var wordUserService: WordUserService

    @PostMapping("/{id}")
    fun add(
            @PathVariable("id") uid: Long
    ) {
        wordUserService.add(uid)
    }
}